package cn.com.cifi.mars.service.impl;

import cn.com.cifi.mars.bean.dto.VsMarsGetinDto;
import cn.com.cifi.mars.entity.VsMarsGetinzcl;
import cn.com.cifi.mars.mapper.mars.VsMarsGetinzclMapper;
import cn.com.cifi.mars.service.VsMarsGetinzclService;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author JingYuanXiang
 * @since 2021-02-03
 */
@Service
public class VsMarsGetinzclServiceImpl extends ServiceImpl<VsMarsGetinzclMapper, VsMarsGetinzcl> implements VsMarsGetinzclService {

    @Autowired
    private VsMarsGetinzclMapper vsMarsGetinzclMapper;

    @DS("mym")
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public List<VsMarsGetinzcl> selectByKingdeeProjectfId(String kingdeeProjectfId) {
        return vsMarsGetinzclMapper.selectByKingdeeProjectfId(kingdeeProjectfId);
    }

    @DS("mym")
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    @Override
    public List<VsMarsGetinzcl> selectByKingdeeProjectId(String kingdeeProjectId) {
        return vsMarsGetinzclMapper.selectByKingdeeProjectId(kingdeeProjectId);
    }
}
